package cn.bdqn.dao.Role;

import cn.bdqn.pojo.Role.SysUserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 *
 * 用户表于角色表的中间表
 *
 */
@Mapper
public interface User_RoleMapper extends BaseMapper<SysUserRole> {
    //修改中间表的isdel字段为0，表示删除
    public Integer updateSysUserRole(Integer userId);
    public Boolean updateRoelByAdmin(@Param("userid") Integer userid,@Param("roleid") Integer roleid);

    Integer insertRoel(@Param("userId") Integer userId,@Param("roleId") Integer roleId);
}
